 //axios基础封装
 import axios from "axios";

 const  httpInstance = axios.create({
     baseURL: 'http://localhost:8080',
     timeout: 5000
 })
   // axios请求拦截器
 httpInstance.interceptors.request.use(config => {
   return config
 }, e => Promise.reject(e))
 
 // axios响应式拦截器
 httpInstance.interceptors.response.use(
  res => {
      console.log('Interceptor response:', res);
      return res; // 不直接返回 res.data，保留完整响应
  },
  e => {
      console.error('Interceptor error:', e);
      return Promise.reject(e);
  }
);
 export default httpInstance